Optimized oct-tree