public double heuristicTest(int i, int j, int destI, int destJ) {
        int undoSetI = this.destI_pos;
        int undoSetJ = this.destJ_pos;
        double estimation = -1;

        try {
            BitmapGraph.A_Star testAs = new BitmapGraph.A_Star();
            this.destI_pos = destI;
            this.destJ_pos = destJ;

            estimation = testAs.heuristicEstimation(i, j);
        } catch (Exception ex) {

            estimation = -1;
        } finally {
            this.destI_pos = undoSetI;
            this.destJ_pos = undoSetJ;
            return estimation;
        }
    }