Simple polynomial plotter made in Qt