Implement numeric comparison and arithmetic functions