Pseudocode added to README.md