fix typo in exponentiation example
finished fermat test
fix cancelling of async tasks