Merge sort is implemented in ruby way