Vector<Double> border2 = new Vector<Double>();
border2.add(x1 + radius);
border2.add(y1 + radius);
SortedMap s = ts[k].subMap(border1, border2);
Iterator it_k = s.keySet().iterator();
Iterator it_v = s.values().iterator();
while (it_k.hasNext()) {
key_row2 = (Vector<Double>) it_k.next();
x2 = key_row2.elementAt(0);
y2 = key_row2.elementAt(1);