Merge Sort implemented using array