-Corrected the "zero-spanning interval" assertion in both haskell and scheme versions