Fixes for beta 5.

In both the solver and renderer operations, made a const copy of array and loop over that rather than the var version

In the solver operation, create an array of fixed length and update using subscripting rather than append() for a 15% improvement!