put all the iterations in the loop. The patchMatch with smaller window is separated and set alone.

Signed-off-by: Enliang <ezheng@cs.unc.edu>