Fix #5: Handle overlapping sections
Handle overlapping sections properly. This was a problem with calculation of the gap between two sections that happen to overlap. It resulted in a negative gap that turned into a very large positive number.
Handle overlapping sections properly. This was a problem with calculation of the gap between two sections that happen to overlap. It resulted in a negative gap that turned into a very large positive number.