documentacao do nearest neighbor