Adding the base code for the Needleman-Wunsch-based polisher