An Algorithm and Complexity Results for Causal Unit Selection