Multithreaded program to index words in text files using boost