The Sort::medianSort() implementation is now working correctly.