Samsung Q4 profit triples as memory shortages drive up chip prices