At least 52 prisoners died as fighting between the two gangs escalated into rioting in Brazil.