microoptimization - change mod % 2 to bitwise operation (merged back from jquery-handsontable)