write bezier coeficient generator, and transformed it to log form in order to overcome numeric problems.
write bezier curve fitting test and plot functions.