Needleman-Wunsch algorithm implemented