Classification of distributed binary labeling problems