indexing from cells to lateral connected segments - for performance.