The algorithm used here could do with including the reference from http://en.wikipedia.org/wiki/Standard_deviation#cite_note-7