uncommented argminmax 

Fixed problem with commented argminmax function reported here https://github.com/wf4ever/ro-manager/pull/16/files#r2649587 by Graham.