Implement quadratic equation calculator