code: private static double poly(double[] cc, int nord, double x) {
          /* Algorithm AS 181.2    Appl. Statist.    (1982) Vol. 31, No. 2
          Calculates the algebraic polynomial of order nord-1 with array of coefficients cc.
          Zero order coefficient is cc(1) = cc[0] */
          
          double ret_val = cc[0];
          if (nord > 1) {
              double p = x * cc[nord-1];
              for (int j = nord - 2; j > 0; --j) {
                  p = (p + cc[j]) * x;
              }
              ret_val += p;
          }
          return ret_val;
      }
docs: Used internally by ShapiroWilkW().
  
  @param cc
  @param nord
  @param x
  @return