Added parallel version of transformMultiArray function