Fixed any bugs and added solving quadratic functions.