Changed vector and matrix to struct from arrays. Replaced mult and subtract function with operator overloading functions.