added the ability to skip NaN in Statistics class