Fixed a bug in updating BST tree size.