merge gain_tree & entropy