Implemented size, maximum, depth and map for a tree ADT.