an exercise in writing own merge sort in Ruby