Working version with RCM_Ordering