Adding flip function to flip the order of a functions arguments.