minmax for float vectors