add linkVertexDofs() and removeDofsGaps() functions