Text this: Discrete logarithm problem in matrix