private static int[] min(int a, int b, int c) {
        int[] res = {a, INSERT};
        if (b < a) {
            res[MINIMUM] = b;
            res[POSITION_MINIMUM] = DELETE;
            if (c < b) {
                res[MINIMUM] = c;
                res[POSITION_MINIMUM] = SUBSTITUTION;
            }
        } else {
            if (c < a) {
                res[MINIMUM] = c;
                res[POSITION_MINIMUM] = SUBSTITUTION;
            }
        }
        return res;

    }