Calculating three contours
Using ThreadPool to calculate contours