Added function for computing partition; getDof working for Mesh and Node