South Korean researchers create device that simulates memory