Memory R/W

1. Modify mem access to support r/w
2. Impl memory store