Updated alignUngapped so that it gets the correct value for lastConsecMatchPos