Update Patch_Memory.cpp

Supported all functions of type D and E codes.
Mixing tabs and spaces. Very, very, very bad.