added another way (although incorrect) of backtracking for affine gap alignment.