A few data mining algorithms in pure python