Added quadratic solver function to program