Working through Volume 2 of TAOCP