Kuhn's algorithm, tests.
Kuhn's algorithm