fixed all unsigned ints to size_t
fixed bug in bezier constructors