Refactored quadtreetree some to try to control the code sprawl.