I thought about a way to keep valgrind happy without breaking my nerds. using a helper function smemory that beside returning memory block, will also attach a node to global lis