Implemented vector in terms of matrix