Minor improvement to GPX compression algorithm (still very slow)