add solution for sorted array to bst