Added tests for precise solving and one lost file from previous commit.
TODO: Add tests for optimizing.
Added possibility to set accuracy for optimizing. Added test.