made a filtering function for dictionary

filterDictionary takes in an int and list of strings, then creates a new
string that contains only the words of the length of the int passed in.
mostly a test for trying out file IO and manipulating data.