Added Schnorr algorithm.