An implementation of Autocomplete using a prefix-tree