Particle swarm optimization module for Haskell