Fixed divide by zero in the division function and a=0 bug in the quadratic solver.