added the Collatz solution