updated sampleGeneticNetworks.m