add bezier interpolation and some combinatorics