Created the GestureSegment class for the trie