Anyone know a good cardinal curve algorithm?