Needleman-Wunsch algorithm for global sequence alignment