+ fixed hash table indexing problem
+ added lower limit for number of neibours
+ added finding nearest n points