Finished implementation of Mesh class.