nanmax nanmin nanmean etc functions without tests