Index for fast lookup of the polygons. Implementation is messy and needs serious cleanup.