Add true multidim capabilities

An n-dim histogram classifies n-dim input values into bins. We still provide
a 1-dim histogram for ease of use.