INVESTMENT AGREEMENT dated as of July 19, 1999 between TPG MAGELLAN LLC and MAGELLAN HEALTH SERVICES, INC.