Fixed bug in LCP sub intervals calculation, added extra tests. Fixed bug
in class definition (used global variables instead of fields), added
extra tests.