Matrix Power Function And Elgamal