Add memory method to collect memory usage
v0.1.5