fix abp.cpp
change termination condition
run meme sequentially if too many partitions
change termination condition
fix bug
fix bug
fix bugs