Improve gaussian

NaNs already removed, use data instead of cleandata.
Fill sumdata only once.