Longest increasing subsequence.cpp