Takes a 2d array, grabs first element of the first array, moves the first array to the end, and returns both.