progcomp::ontour

Faster solution.