Removed some unused code in Flip.m