src: Added insertion of genops test data and implemented Metropolis-Hastings sampling to generate the patches used in those tests.