Discrete Log Realisation of Gelfond-Shanks discrete logarithm computation algorithm with O(√n) time complexity.