Create direct linking between matching annotation and annotation-end elements
Fix incorrect (by pattern) check of compareDocumentPosition result
Merge pull request #359 from kossebau/linkAnnotationEndToStart

Create direct linking between matching annotation and annotation-end elements