Code and tests for Schulze method