Programming matrix Vectors