Implemented Miller Rabin Test