Create dogleg__.m