cleaning
merge sort with inversions and ruby