code to parallelly convert the hdf to mat files.