Tryed to make Algortihm interface work for BackgroundSubtrators.