Added implementation for ternary operations
Tested ternary functions
Merge branch 'master' of github.com:zhangxiangxiao/Thunder