Implemented validation of CC in accordance to http://www.cartaodecidadao.pt/images/stories/Algoritmo_Num_Documento_CC.pdf