Faster smoothing in apply_mask()

gaussian filtering has been tuned to get higher speed.
Output of apply_mask() is now always in F order (which is good for
subsequent operations, because timeseries are contiguous in memory)