HashMap, HashSet, List, Array: Add swap methods