A Compressed Sensing Approach for Distribution Matching