added octree to the sweptCCD function