check out the shared memory
fix a bug introduced in the former checkout. (line 1062 in the file patchMatch.cu)

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