fixing neighborlist.hpp implementation