Added allocation for contour coordinates. Main slicing loop is not finished.