Fixes #12 : Add support for multidimensional data

See #12