add array to binary tree