Euclidian distance calculation in TspFileHandler fixed