Changes to DMC

Changed the DMC algorithm to comply with the octree order used by the
rest of the program