convert sorted array to binary searh tree