Madison man arrested after months-long heroin investigation