Algorithms for continuous queries: A geometric approach