swapping multiple variables for array