Impl sum by bit operation.