replace custom memory wrappers with stdlib
add .gitignore