add Function3 and WrappedFunction3

I need these two to add more API to spark streaming