Quadratic solver written in C