Revert "KMG algo added"

This reverts commit 1b0d6a69d18f8981c0bde9adcfdb23f6b4ec7110, reversing
changes made to c7c6058948aa6f73e9349944d58ae4cfdb95cd73.