- added method to get the closest node to a given node