For duplicate elimination

Added the code to find arithmetic mean in case of duplicate records