monotonic velocity curve added and chord length calc function