rough draft of the algorithm added to the readme