Trie implementation using map

Signed-off-by: Lokesh Gyanchandani <lokesh.sgc@gmail.com>