Compute CV error