Update pseudocode.txt

Replace with pseudocode from Gist https://gist.github.com/lmcmenemie/8615895