PHP Traits algorithms for Encoded Polyline & Bing Point Compression