Feature/cached mz ml format

Adopt the format of CachedMzML such that it is not required any more to know the number of spectra/chromatograms before writing to disk.