Long-term multi-wavelength variability and correlation study of Markarian 421 from 2007 to 2009