Initial impl of Longest increasing subsequence using Patience sorting.