added (pick ...), with minor modification from the version in the book, to deal with a termination condition it sweeps under the rug;
added (rempick ...), again with similar modification as last time;