Solution of the density classification problem with two cellular automata rules