implementation of circulant temporal encoding for video retrieval