improvements in all algorithm classes