Implemented globalAlignment (inserted backtracking).