added method to BinarySearch that searches files in a directory matching
a key