Support for 2D and 3D histograms

issue #3