Working on spatial data structure