add a test
dynamically allocate buffer to save memory (issue #1)