Added TODO
Added parameter to constructor: maxSegmentsPerCell