A function to solve polynomials. Completely a work in progress