Wraps the provided row or column of values by columns after a specified number of elements to form a new array.