Updated the Needleman-Wunsch alignment memory structure