Updated align_ungapped; in the forward direction in which align_ungapped reaches the end, align_ungapped works except for an off by one error