added timespan restriction to random-, nearestneigbor and sweep
algorithm