Quadratic Diophantine Equations