Similarity Search by Earth Movers Distance using Nonmetric Ground Distances