refactoring memory value and memory address tracing. implementing memory size tracing