attempt at quadratic regression search