Algorithms for Moving Objects Databases