bubble and collatz