Implemented Polynomial::solve(), which can solve polynomials of degree <= 4.