Simplified the method 'middleSplit' in class 'KDTreeSingleIndex'.