Computing a Discrete Logarithm in O(n^3)