A graphical turing machine for multiplication and exponentiation