add needleman-wunsch align function