added Cfg and Block classes, to support CFG block detection.