Write a python function that solves a quadratic equation.