updated memoryAlloc test answers for part1 as reference