Only solves linear and quadratic polynomials. Will get solutions to more general polynomials in the future