fixing min/max to return indices as well (given an arbitrary dimension)

Fixes #48 #69 
good point, I basically copied over the cwrap from torch7, and in this case noreadadd is redundant. removing it.