Added method to calculate tourlength