solution to sortedArrayToBST