Category of trees in representation theory of quantum algebras