bezier1 ===== rust bezier 1d functions