Added recursive method Tree::getSize().