TernaryFunction javadoc added
moved TernaryFunction to separate file
Merge pull request #2 from have-a-look/master

 Merge pull request #2 from have-a-look/master