merge-insertion sort was implemented