A rank algebra to support multimedia mining applications