Exposing C lib set2 function in haskell lib

set2 will allow you to set the value and retrieve the stats at the same
time