Simerka - Quadratic Forms and Factorization