added function to create BST from sorted array.