Fixed neighborhood computation bug, now algorithm works on all data sets