Removed trailing whitespace
Change the way neighbors are determied to use iterators, and not allocate.
Fix bug with test, and improve performance