Added implementation of PSPG
Rebase fixes.
Fixed an issue with too many particles being replaced in PSPG which threw an exception.
Merge pull request #170 from filinep/pspg

Implementation of PSPG