refactored and made the 6 comparison operators. seems to work, passes core05 and core102,  and own tests core610-615