Polishing the matrix-vector class.
Fixed Grid classes to conform the new API.