converted "video" module to C++

converted "video" module to C++. Background/foreground subtraction algorithms have been converted to the new style.