Random walk approach to the problem of impulse noise reduction