Bug correction: the tempC array was initialized using the wrong size in the 3rd component.