Update README.md

Updated pseudocode