consumer and producer multi-threaded apporach to finding words and their frequencies in a file