Add more operations to BinarySearchTree and Stack modules.