added vanilla trie, ps_mem script and many more changes