new algorithm to simplify shape depending on scale. Same algorithm as android version of mapbox except that we dont clip to screen rect (not working for now)