Implementation of Octree in Java