[FIX] fixed bug in interval tree ...

... when query interval and tree interval share the same end (by courtesy of Sandro)