Added bencooling function

Added bencooling function
Merge pull request #22 from bencooling/master

Added bencooling function