Dll with permute rows method incorporated