Implemented size, depth, maximum and map using fold for tree ADT.