Some optimizations on the octree base class
Bug fix (Spatial sub-sampling)