Corrected estimate_errors() to call Optim.sse

When levenberg_marquardt was removed, it also removed the
sse() function, which estimate_errors relied on. This bug prevented
the function from running, but is corrected by calling Optim.