added primes, updated kmeans

first rev of primes related algorithms
added kmeans subclass for plotting