Make solver work with negative free terms

Signed-off-by: Tony G <mipt.shootnick.spam@gmail.com>
More tests with negative free terms

Signed-off-by: Tony G <mipt.shootnick.spam@gmail.com>
Fix issue with indexes correct calculation after having basis solution.

Signed-off-by: Tony G <mipt.shootnick.spam@gmail.com>
Bugfix and small cleanup

Signed-off-by: Tony G <mipt.shootnick.spam@gmail.com>
Output results (ugly UI for now)

Signed-off-by: Tony G <mipt.shootnick.spam@gmail.com>