Use constant for number of iterations in tests.
Use negabinary representation for cube operations.