adding reduce sum operation to comm tools