bst from a sorted array