experimented with memory mapped files to increase IO performance (fail), fixed bug in model implementation