add a (kinda unfinished) C++ version

vectors are REALLY slow, apparently. like worse than Ruby (reference to #1)