refactored ToBeNumber to use Comparators instead. Concrete classes are no longer needed. Also optimized the creation of the Comparators for Numbers.