bezier curves and surfaces

I would like an algorithm of bezier surfaces if anyone uses this I would appreciate it