Adding collatz sequence in Julia