Simple quadratic equation solver