Naive Matrix and vector routines