reverse.levels function

Reverse the levels of a factor.