BST from array