Train using the particle swarm algorithmΒΆ

WIP: include all details for training with PSO