Computes the index of the minimum valued element of a vector. Note: the return value is zero-indexed.