Fitting multidimensional data is now correctly implemented. Data is flattened upon initiation in a consistent way, therefore Fixed #4.