added higher tolerance and periodic equalization for the NBall, and modified Graph::memoize to use breadth-first rather than depth-first searches