follow and solve problems from think complexity book