added comparison and number theory functions