[imgproc]Add template match with mask.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Sure. I could change it as your comments. It need some time and I think I could finish it tomorrow. Another issue is that I found I need add invArea into mask function. It will be added in the next commit too. Thanks again.