fixed CRT to use our modexp function