Made the program functional

The program now solves the quadratic formula.