Added Rafa's octree builder