Reworked version of the BinaryDataTree library, using Java 8.