Updating HTreeImpl with additional functionalities