add matrix power