Creating minimal height BST from sorted array