calc_topology_stats function

Calculate all topology based statistics for a single tree