calculate Dulmage–Mendelsohn decomposition