Add support for user-supplied key construction function.
Merge into master from pull request #34:
Add support for user-supplied key construction function. (https://github.com/floodlight/bigcode/pull/34)