finished more algorithms