Sam's Club beats Costco – thanks to tech