Pseudocode modified in README.md