Fix bugs for issue #2 in C12_3_LongestIncreasingSequence