added algorithm pseudocode to readme.txt