needleman wunsch algorithm finish