transferred solution for linear equation from C
work on lm optimizer
Merged versions