QuadTree: added missing const qualifiers, passing arguments by reference.