Update generateCourse.lua

modified `smoothSpline` function and added helper function `symPoint` and `lineCrossing`