An efficient MapReduce algorithm for similarity join in metric spaces