Added memory.h to headers
Added stack test as an example