New Matrix class templating type and dimension as Vector.