function path = BasicAlgorithm1(oracle)
    path = [0 0];
    x = 0; y=0;
    
    epsilon = 0.05;
    
    while(IsOutOfDisk(x,y)==0)
       % generate next coordinate 
       [v,u] = GetRandUnitVector();
       x_try = x+v*epsilon;
       y_try = y + u*epsilon;
       if(oracle([x_try,y_try])==0)
            % no hit
             path = [path; x_try y_try ];
             x = x_try; y = y_try;
       end       
    end
end

function res = IsOutOfDisk(x,y)
    res = (x)^2 + (y)^2 >= 1;
end

function [x,y] = GetRandUnitVector()
    ang = rand*pi;
    x = cos(ang);
    y = sin(ang);
end