fixed bugs in generate_edges_s(), edges-s.h, then no cuda-memcheck error, square3(r_v->imRef_s(r_v, x_v, y_v) - r_u->imRef_s(r_u, x_u, y_u)) + square3(g_v->imRef_s(g_v, x_v, y_v) - g_u->imRef_s(g_u, x_u, y_u)) + square3(b_v->imRef_s(b_v, x_v, y_v) - b_u->imRef_s(b_u, x_u, y_u)));