Reduce the loop when returning a reversedArray.
Merge pull request #2 from codeman9/reversed-array-simpler

Reduce the loop when returning a reversedArray.