Fixes to make simulation threadsafe re previousConceptPairs.txt
- Lock writes to previousConceptPairs.txt
- separate simulation of ordered and unordered questions to prevent contention of log file
- Open previousConceptPairs.txt in append mode to preserve historical information.