fix for calculating max relative error in tsplib scaling