Matrix Stuff. Discrete Log