Min-k max-k now look good.
Added 'if name is main'
Duh. Doesn't work with duplicates
Don't need this.