Implemented globalAlignment until filling the matrix.