Colleges grappling with rising costs and declining enrollments are increasingly embracing a solution more commonly seen in the private sector: mergers.