add script from Multi-dentrix to permute networks