Formatting BallTree
Factoring CountedProxyIterator