Working on octree did some improvements to output for debugging. Seems to be something wrong in getQuadrant. Will try to find what it is later, but it seems to be returning wrong value for some reason.