problem 14
correct, but slow solution
problem 14
save known results
problem14
only store the length of the known sequences, not the sequences themselves.