Simple C code I wrote to calculate kemeny rankings IIRC it handles ~40 candidates under a second