Added allocation of memoryfor surface coefficients in the NS constructor. This should fix the segmentation error.