Problem: Find longest increasing sequence
 Solution: keep a table of intermediate results