Sequential code for MIS benchmark