sum for complex numbers