Kunerth's algorithm