Activity: Generalizing the Implementation of the Binary Tree