Create wgen.m

The function wgen() accepts the test image, the verification matrix and the secret pass key as input arguments. It returns the test watermark.