C++ implementation of Quine-McClusky algorithm