patches: modified makefile to include randmt, modified randmt.h for compilation under c++, new function in patches_lib to simulate patches, new file patches_sim.cpp to generate image of simulated patches