Added the multidimensional to jagged conversion