update cachevector.R