Refactor: Remove memory aliasing of boxx
Refactor: Replace integral type with bool
Refactor: Replace global shared temporary array with local temporary array
Refactor: Replace global temporary array with local stringstream