[1] http://www.keithschwarz.com/interesting/code/?dir=argmax
IMHO it doesn't fit at all with the other things. You can implement In-Place Mergesort or one of its variants by studying Wikipedia. Or you can just look up a nice implementation from the OPs site and port it to your favorite language. That said, this argmin/argmax thing does absolutely not fit.
"If you're interested in using any of this code in your applications, feel free to do so! You don't need to cite me or this website as a source, though I would appreciate it if you did. However, please don't plagiarize the code here by claiming authorship - that would just be dishonest. I also caution you that while I'm fairly confident that the code on this site is correct, I haven't mercilessly tested every line, and so there may be a lurking bug or two here."
Does anyone know if there is an implementation of the (supposedly) faster version, which was published in this later paper?
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.134....