Solution for the bezier problem in handin 3

This solution is implemented in C. The same method is applied
as we did on the white board in class.