My own implementation of the Diverse KSP algorithm.