Type "Needleman Wunsch" into google (http://www.google.com) and come back with questions when you've read some of the pages which are returned.