Creating a binary tree instance by balancing an Iterable.