A c++ version of the amatch Ruby gem