DSP implementation of a low complexity motion detection algorithm