public List<REntry> search(double[] point, double ratio) throws DimensionalException { List<REntry> resultados = new LinkedList<REntry>(); StringBuilder sb = new StringBuilder(); if (point.length != dimension) throw new DimensionalException("Can only search for n-dimensional points"); root.search(point, ratio, resultados, sb); visitedNodes = visitedNodes.add( new BigInteger( "" + sb.toString() .length())); // visitedNodes.add(root.visitedNodes.add(BigInteger.ONE)); return resultados; }