public double[][] getDistances() {
	double[][] out = new double[dimx][dimy*2];
	for (int i=0; i<dimx; i++) {
	    double[] a = new double[dimy*2];
	    Arrays.fill(a, -1);
	    out[i] = a;
	}
	
	for (int i=0; i<dimy*2; i++) {
	    for (int j=0; j<dimx; j++) {
		SombieNode a = getNode(j,i/2);
		SombieNode o = (i%2==0 ? getNode(j+1,i/2) : getNode(j,i/2+1));
		if (a!=null && o!=null) {
		    double d = a.getVector().getDistance(o.getVector(),1); //euclidianDistanceSquared(o.getVector());
		    out[j][i] = d;
		}
	    }
	}
	
	return out;
    }