Update README.md

added pseudocode