Implemented selectors specificity calculator.