A Quine-McCluskey minimizer modified from http://sourceforge.net/projects/mini-qmc/