Updated Bernstein Polynomial code

A new function implementing De Casteljau's Algorithm. See
bernsteinbasis.r for a speed comparison using microbenchmark.