added code for sorted array to BST.