Both I and Ilan have attached the code, take a look and take away the doubts
actually, i have not posted the code for my Bezier Curve example. And the reason for that is, this is the FIRST algorithm i did by my self and i wanted to make a more detailed post on it but could not find the time for that until now. it is really a nice algorithm and really 100% mine