Wrapped up HCTree build function