Solve problem 14 in C++

Still pretty slow, probably because of O(log n) std::map.
Switch to std::vector as the cache for Collatz

Now this is very fast, although it can still stack overflow.