Added Collatz number implementation.