gpubgsegm module refactoring

Switched to new Algorithm API (used interfaces from video module).