added simple algorithm to readme