More work on the split_lcp_intervals function.