Merge sort in java