add hist2d! that accepts a pre-allocated result array