implement slicing on lines and metadata
move intersection code from Line to ConnectedMultipoint
fix bug in intersection code