p14: collatz problem, including optimisation