Merge Sort implemented in java