function flip

Flips X by specified AXIS

Syntax
result = flip(X, AXIS)

Arguments
X:   The array to be flipped
AXIS:   Which axis to flip: 1 = x, 2 = y