Find a center line of a closed curve