Fast algorithm for large number power multiplication of modulo n