Added histogram calculation
Merge pull request #3 from sburnicki/histogram

Added histogram calculation