added a partially working curry function, and refactored flip as a special case of jumble