added rev.ff for reversing an ff vector