INVESTMENT AGREEMENT dated as of July 23, 2012 between Genesee & Wyoming Inc. and Carlyle Partners V, L.P.