add trace back matrix in pair alignment