Working off-diagonal deterministic loop update
Added a set of boolean flags to control the type of off-diagonal update, and type of ratio trick