use vector instead of Memory read/write

, becasue Memory read/write works incorrectly here...