Add tree.
Fixed grouping grade bug when input 40 group and input 1 grade.