optimizate isnan and add isfinf interfaces