implement the preliminary version of mcgbGenerating and generalSimplify procedures in mcgb.lib