some bugfixes
some major bugfixes, first draft on update-step in PSO and removal of some debug-prints
removed another debug print which has been forgotten in previous commit
optimization: use pass by reference for large structures, only implement common functions once
remove unnecessary virtual and fix return-statement warning