Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction