average calculation on N mapper and M reducer