Class Based Thresholding in Early Exit Semantic Segmentation Networks