A C++ Logic Gates Library