Tried to clean up collatz.rb a bit--needs more work