Add rev
Address CR: Use loops
Merge PR #29 (@ihodes, `rev`)