Added k nearest neighbors