Refactored. Introduced LCPSubinterval class.