Implemented matrix type
Fixed matrix-vector multiplication