Online Change Detection Algorithm