reorganize kminvalues as separate package

This moves kminvalues code into a separate directory with a separate package name so other projects can import that directly