trie implementation

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