Added collatz sequence generator