added specific functions for directions
Added curryNth

curries arguments at the nth position