move common into util
add Point Class
fix bezier calculate bug