C3.D — Near-optimal Algorithm for Constructing Greedy Consensus Tree