Minor changes in vector manipultations, and matrix stuff added