Added dynamic simulation for use with distributed systems and incremental simulations
Added module based exports
Added test for distributed systems
[skip ci]
Refactored calculation functions to combine and simplify logic.
Revised functions to accept direct parameters instead of operating on the entire grid.
Resulted in significant performance improvements through enhanced compiler optimization.
[skip ci]