Correct intersection distance measure
Remove unnecessary type annotations