Implemented De Casteljau algorithm