Sparse Coding with Earth Mover's Distance for Multi-Instance Histogram Representation