My implementation of the code from "Think Complexity."