Fixed RNG speed issue. Added a few more functions for HPSO.
Revert this