Merge sort now dynamic