Added multithread support for GA, PSO and DE