Similar Items: TMaR: a two-stage MapReduce scheduler for heterogeneous environments