Memory stocks rally 7% as Temasek plans Samsung, SK Hynix stakes