Added Quadtree and Octree implementation in one.
Merge pull request #1347 from MarcinSc/develop

Added Quadtree and Octree implementation in one.