replace Swap with std::swap
unarr: rename mins to smin (same as fmin)