add tcc.cpp used to compute one hierachy transitive closure