Implement map for bintree