[BE] regression alg scaffold (not working)
[BE] fixed bugs in Regression