Collatz Conjecture Algorithm