Add tests for different bucket sizes, and DRY up the in-order walk code in SophisticatedMedianFinder.