ivy: add rev and flip (theta and phi in APL-looking terms)

Reverse vector and matrix around last and first axis, respectively.