Changed monotone chain class to internal