'Build a list self._index such that self._index[i] is a list
of the alignments originating from word i.'

def _build_index(self):

    self._index = [[] for _ in range((self._len + 1))]
    for p in self:
        self._index[p[0]].append(p)
