[MF] adjusting line direction wiht Levenburg-marquart

Smoothcost for Levenburg-Marquart seems to be working