Nate and Josh simple clustering algorthm for srini