create a BST with minimal height from sorted array