Swaps element at index i with element at index j. Preconditions: i < length && j < length Complexity: O(1)
See Implementation
Swaps element at index i with element at index j. Preconditions: i < length && j < length Complexity: O(1)