makenodes function

Compute the matrix nodes containing all the nodes in the mesh.