changed vector struct to be consistent with matrices