replace merge sort with a different one