Exchange position of 2 elements ONLY when finding the minimum.