add algorithm to readme