finished problem 11
finished problem 12, would like to make it faster though, takes a little more than a minute to compute