helper functions
Convert Sorted Array to Balanced Binary Search Tree (BST)