Fixed NIL output with only one reference point, also added Distance output
Merge pull request #207 from DominikKoller/NearestNeighbour_bugfix

Fixed NIL output with only one reference point, also added Distance output