Create engine.cpp

This is the base version of the Particle Swarm Optimization algorithm which has been improved upon. Comment format in correspondence with Doxygen guidelines.