Added local optimizers

Added Gauss-Newton like squared residuals optimizers, and an l1-
residual optimizer