Created new working line algorithm. Changed OptimationTest to test the new class