study of collatz problem in ruby and c, comparative