Implemented improved octree raycasting