adding matrix exponention.