A Diffusion Based Wave Computing Algorithm for Real Time Edge detection