passing vector copy not reference
only considering real features for determining neighbourhood
added todo
added normalization

also verified it with matlab
first steps into computing weights