created a CasteljauSurf function