makes QuadTree a templated class