cvc_matrix compatible; cross validation added