Tree class for new TreeCore