AIM: add integer log2 utilities
Merge into master from pull request #12:
AIM: add integer log2 utilities (https://github.com/floodlight/infra/pull/12)