A distributed Content-Based Video Retrieval system for large datasets