made leafSim thread safe, started working out paralllel algos.