implmented first mapreduce step of SON algorithm