added merge sort code