Add method for generic array reduction