Add longest increasing subsequence for python