merge sort algo working