log("Building VPTree...");
VPTreeBuilder builder = new VPTreeBuilder(d);
VPTree tree = builder.buildVPTree(strings);
log("..done");
VPTreeSeeker seeker = new VPTreeSeeker(d, tree);
log("type a string|range then hit return:");
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String line = null;
while ((line = input.readLine()) != null) {
int index = line.indexOf('|');
String query = line.substring(0, index);
float range = Float.parseFloat(line.substring(index + 1));
long start = System.currentTimeMillis();
Set<Serializable> results = seeker.range(query, range);
long stop = System.currentTimeMillis();
Iterator<Serializable> j = results.iterator();
if (j.hasNext()) {
while (j.hasNext()) {
String r = (String) j.next();