Levenbergmarquardt Programm and Test working but slow