advanced reasoning book pdf