More HW6

collatz.erl doesn’t work so wonderfully.