A Coulomb collision algorithm for weighted particle simulations