Javascript Octree / Quadtree implementation with focus on performance