Remove redundant brackets.
Substitute lambdas with equivalent 'const'.
Resolve minKey shadowing warning.
Merge pull request #64 from archblob/master

A little cleaning.