Walmart CTO departs to lead Pinterest engineering team