Adding k nearest neighbor example