More work on prefix tree, renamed triemap.

Created a test for the triemap