solving quadratic inequalities