fix slow exponentiation example: added isCancelled() call in async task