reverse array with native method