Add mapMaybeWithKeyTM to the TrieMap class