rewrite leetcode sorted array to BST