Made it so Needleman-Wunsch alignment uses a one-dimensional array