Implemented log-coloring and log* coloring for trees