code: public static double[] breaks(double[] x, int k) {
          return breaks(Math.min(x), Math.max(x), k);
      }
docs: Returns the breakpoints between histogram cells for a dataset.
  @param x the data set.
  @param k the number of bins.
  @return the breakpoints between histogram cells