A basic implementation of the Bezier curve algorithm.