Add color distance table to rank the query result