problem 14: longest collatz sequence