Implementation of AES algorithm