Fixed bug in memmap example. Close #3.