add forcequit triggers in case of bad allocation, add fn clear()
Merge branch 'master' of https://github.com/codelegend/algorithm-compiler