builder pattern for MLP and parallelized the PSO algorithm