early working find burger algorithem