Updated code_jam_multithreaded. Added generic solver.