Messy, but working iteration in the Octree