Replaced dense matrices in EmissionModel by sparse ones.