MathHelper improvements
refactored emitter code
Added frb.ResourcePool
refactored emitter sample to use resource pool