Find prefixes

I have implemented a new feature Dictionary#prefixes(string) to find all the prefixes of the string, so that I can use the class to create a dictionary of prefixes.