Redirecting to Chan's algorithm