Move adjacency map stuff to C for performance reasons. Allow `PLANET/N'