Samsung to invest $615M in Flash memory, DRAM chips