adding merge sort and tests