Added pseudocode to README.md