http://www.codeproject.com/Articles/42492/Using-LINQ-to-Calculate-Basic-Statistics