Problem 6-2: Median Maintenance