private long[] getCommonRegions() {
        long[] result;
        if((this.sectionID == 1) || (this.sectionID == 2)) {
            result = new long[height*2];
            for(int i=0; i<height; i++) result[i] = submesh[1][i].getTemp();
            for(int i=0; i<height; i++) result[i+height] = submesh[width-2][i].getTemp();
        } else if(this.sectionID == 3) {
            result = new long[height];
            for(int i=0; i<height; i++) result[i] = submesh[1][i].getTemp();
        } else {
            result = new long[height];
            for(int i=0; i<height; i++) {
                result[i] = submesh[width-2][i].getTemp();
            }
        }
        return result;
    }