Text this: K-median clustering, model-based compressive sensing, and sparse recovery for earth mover distance