Monte Carlo Merger Analysis Code (MCMAC)