CTCI 9.9 place 8 queens