cross validation error function based on maximizing probability of randomly selecting max entry per block