Minimal multi-threaded grep