adding new files for newly-public classes Pair and InvertedFileFilter; moved dir and filter factory functions to _util