Add numerator and denominator classes

Add numerator and denominator classes, remove data properties has
numerator and has denominator and make them object properties with
quality measure as domain and numerator/denominator as range