Solving System.outofmemoryexception Efficiently Processing Millions Of Tasks In C