found bug, residual works, script takes shitlong though, time to optimise
Merge branch 'master' of https://github.com/FMenhorn/ScientificComputingLab
Merge branch 'master' of https://github.com/FMenhorn/ScientificComputingLab