add additional memory_usage check
externalize stop conditions
unittests
add additional memory_usage check
externalize stop conditions
unittests
removal of accidental added test in merge conflict resolving
Merge pull request #74 from basz/exceeding-max-memory

add additional memory_usage check