adding min/max-queries for pairs of time points

see issue #55