Computing monomer-dimer systems through matrix permanent.