use native array reverse function
Merge pull request #147 from fsbdev/patch-2

use native array reverse function