fix ParticleBox

- fix bug that memory writes in setAsLastFrame and setAsFirstFrame are not in order
delete dead code snippets
add missing line in licence header
Merge pull request #514 from psychocoderHPC/fix-ParticleBox

Fix Race Condition in Particle Box