Adding reducer code to read map output