Added dependencies among the memory operations

Added dependencies among the memory operations