Implement SCOBS algorithm