fixed bug in quadtree bounds computation. also did some refactoring in how graph layout classes are structured