Added Legendre Symbol calculation from Solovay_Strassen