Java based implementation for Schnorr Algorithm