new task added:
-added filterDictionary() and (*filter)() functions
-fixed destroy()