min/max bikeshedding

* findextrema -> findminmax
* indextrema -> indminmax
* indmin/indmax -> argmin, argmax

* + misc fixes