calculation of dubins paths and dubins length