add some functions for binary arithmetic (enough to compute 100!)