add hist2d function (2-dimensional histogram)
Merge pull request #3026 from JuliaLang/jn/linalg_additions

hist2 implementations