lib/trees: add generic and usefull services in TreeMapNode