Implement height-balanced-trees in the Core.
