Nearly-working version of ch01/ex20.c. Not sure it's worth making the changes in the algorithm for the point of learning.