Added update() method to Mesh class for updating nodes on the elements