bezier interpolation function now operates over finite field