Category tree generate