modified linearMemory, added package for Junit