Merge pull request #19 from apache/histogram

added histogram function