Shares of Slack Technologies Inc surged 50 percent in their debut through a direct listing on Thursday, giving the workplace messaging app owner a valuation of about $23 billion.