moved most memory allocations into pre-allocated memory to improve performance, see #191 and #229
moved most memory allocations into pre-allocated memory to improve performance, see #191 and #229

phetsims/energy-forms-and-changes,phetsims/energy-forms-and-changes,phetsims/energy-forms-and-changes