CTCI 4.3 create miniHeight BST from an array