unary and pairwise term implementation
Merge pull request #9 from jogie-chandra/master

unary and pairwise term implementation