finished application to work for single-side Newton method
added correct LU factorization
fixed convertion from 4-dimentional to 2-dimentional matrix