Interval partitioning algorithm & Unit tests - part 2