Special case curry() for 2-argument functions for speed