Solved problems 18, 67

Problems 18 and 67 are similar problems. In P67, we were given a very
large test case so we can't recursively try every path. The non
brute-force algorithm was pretty obvious though.