private static boolean trackCut(double[] upper, double[] under, int position, int deep) {
        if (upper[position] <= under[position]) {
            return false;
        }
        for (int i = (position - 1); i > (position - deep); i--) {
            if (upper[i] < under[i]) {
                return true;
            }
        }
        return false;
    }