updated filtering function

more proof of concept stuff. filterDictionary now takes user input to
get the length of words to be filtered out.