Add cross validation for small mul and sqr