Gravar-mail: Preserving Differential Privacy for Similarity Measurement in Smart Environments