Add missing file (and fix implementation of quadratic)