add template partialization for BinaryTree