bugfix: joinx bed-merge

when merging two intervals, the stop coordinate from the last bed entry
was always used even if it was smaller than the coordinate from the
first coordinate. example:

1 10 20
1 11 15

would yields 1 10 15

now it yields 1 10 20 which is what we want