swap

fun <T> swap(arr: Array<T>, i: Int, j: Int)

Swap values stored in slots i and j