added Prefix_Tree in python and java; revised cap_Suffix_Trie