added problems 9, 10 and 12

10 and 12 theoretically work, but are too inefficient.