add error detection function in CUDA, find bug in edges.h, smooth_r, smooth_g, smooth_b should be allocated space in GPU
update source file