Solutions in Ruby to the problems in Sphere Online Judge(SPOJ)