introduce Memory.size
Merge pull request #50 from maverickwoo/memory-size

introduce Memory.size (resolve #48)