Algebraic Set Kernels with Application to Inference Over Local Image Representations