The global memory chip crunch has handed Samsung a record $80-billion quarterly profit, the highest ever for a tech company.