Moved solveQuadratic function to Utils.Math