Shai Gilgeous-Alexander scored 29 points after a slow start and the Oklahoma City Thunder beat the Miami Heat 124-112.