improvements in algorithm classes