Updated NSDFWriter to allow three dialects: group of 1D datasets, 2D
vlen datasets and 2D homogeneous datasets with NaN padding.Added
profiling code.