Bézier curves (Coding Challenge 163)