Optimising problem 14

Get rid off the BigInteger, use long instead.
Optimising and cleaning up problem 14

Implementing recursive term count, cleaning up left-over code.
Optimising problem 14

Optimising the solution to the problem by caching (memoization).