Updated sequential MIS code