Fixed query() to return the index of the min value instead of the min val; Updated documentation