Merge sort was implemented