Make TrieMap Serializable

This implementation simply puts the content of the TrieMap into a
HashMap and serializes that

Signed-off-by: Moiz Raja <moizr123@gmail.com>
Merge pull request #7 from moizr/master

Make TrieMap Serializable