Samsung posts record high earnings