Add sketch of new function for building dofmap