added simple buffer test, Memory class