Modified Census cartogram & code optimization