Matrix Power Function And Elgamal Encryption