Solving quadratics by completing the square