Use ChildrenIterator loop to optimize WeighedDistance computation