changed mutex to atomic bool
remove output
parallelize removing multiples
fix bases