Constrain use of shuffle order table to 3x3x3 cube
Return int from debug_flag_if_enabled() to avoid type narrowing warning
Remove throw specs from operator new to match C++11
Simplify trackball motion computation