add Function3 and WrappedFunction3
fix formating
Add Function4 and WrappedFunction4
Merge pull request #47 from xiliu82/branch-0.8

add Function3 and WrappedFunction3

I need these two to add more API to spark streaming