Add implementation for merge sort in ruby