Implemented vectorized de Casteljau algorithm but it doesn't work.