fix miller rabin algorithm, bitshift exponentation failure