reverse every element in array