Added backward traversal.

Added functions for backward movement in trie traversal. This will be
the base of reverse trie traversers. Not tested yet.