Successfully tested with tree topology

Corrected bug on cache hit and miss graphs.