Added Collatz sequence generator