Changed gpxparser to limit the elevation calculation errors