Implementation of a binary tree and a hash set.