Solution to longest inc subsequence problem.
Added comments and tests.