Fixed child(int) member of binary_node.
static_pointer_cast should not have been needed in tree.hpp (now removed).