Java: An exercise in implementing mergesort.