merge sort, inheritance first steps