Particle Swarm Optimization for fun and profit. Coursework for IT3105 at NTNU.