Generalized binaryReverseArgs for more args

binaryReverseArgs has a long name and only works for two arguments. This PR creates a new function reverseArgs which takes N arguments and reverses them, and leaves binaryReverseArgs as is.