Added in multiple threads and created thread function and struct for fill_in_dir