First attempt at problem 14 - longest Collatz sequence.