Added polyline length method and a method to calculate distance between points. Added a proper destructor to Polyline