build balanced BST with sorted array
fix bug in build balanced BST with sorted array