code: public void add(double[] x) {
          if (root == null) {
              root = new Node();
              root.add(new Leaf(x));
              root.update(x);
          } else {
              root.add(x);
          }
      }
docs: Add a data point into CF tree.