Implemented Tree.map (datastructures, exercice 28)