Updates for x86-64, adjusted memory_space.cpp to have O(ln(n)) complexity instead of O(N) in a few commo cases.