add `max_key`, `min_key`, `avg_key` options
Merge pull request #5 from sonots/max

add `max_key`, `min_key`, `avg_key` options