Bit manipulation and modular arithmetic · QuantMax