Added O(N*log(N)) solution for finding longest increasing subsequence