Trie Datastructure Implementation in PHP, with a couple of working examples