Implement retrieval of the longest increasing sequence instead of only its length.
Partially implement longest common sequence, some tests are not passed yet.